package dcore.id;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author djin
 */
@Getter
@Setter
@Configuration
public class NacosIdConfiguration extends IdConfiguration {
    /**
     * machine id更新阈值,默认设置1分钟;1000*60*1
     */
    @Value("${machine-check-threshold:60000}")
    private long machineCheckThreshold = 1000 * 60;
}
